<h3>RESELLER TOKO</h3>
<hr />
<table id="user_toko"></table>
<? if ($data["jmlna"] > 0) {?>
<fieldset>
<table width="100%" border="0">
  <tr>
    <td width="17%" valign="top"><label>Nama Toko</label>&nbsp;</td>
    <td width="2%" valign="top">:&nbsp;</td>
    <td width="59%" valign="top" ><?=$data["toko_user"]->nama_toko;?>&nbsp;</td>
    <td width="22%" rowspan="4" align="center" valign="top"><img src="<?=base_url()?>repositori/logo_toko/<?=$data["toko_user"]->logo;?>" height="100" style="float:right;" class="gambar_kecil" id="gambar_na" /></td>
  </tr>
  <tr>
    <td width="17%" valign="top"><label>Deskripsi Toko</label>&nbsp;</td>
    <td width="2%" valign="top">:&nbsp;</td>
    <td width="59%" valign="top"><?=$data["toko_user"]->deskripsi;?>&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" valign="top"><label>Kata Kunci Toko</label>&nbsp;</td>
    <td width="2%" valign="top">:&nbsp;</td>
    <td width="59%" valign="top"><?=$data["toko_user"]->kata_kunci;?>&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" valign="top"><label>Tanggal dibuat</label>&nbsp;</td>
    <td width="2%" valign="top">:&nbsp;</td>
    <td width="59%" valign="top"><?=$data["toko_user"]->tgl_buat;?>&nbsp;</td>
  </tr>
</table>


<a id="update" href="#" style="float:right">Update Perubahan</a>
</fieldset>
<? } else {
?>
	<fieldset ><center><b>Anda Belum Memiliki Toko</b><br /><br /><a id="add_toko" href="#" >Buat Toko</a></center></fieldset>

<?
}?>
<script>
 	var post={};
 	<? if ($data["jmlna"] > 0) {?>
		var url_img='<?=base_url()?>repositori/logo_toko/<?=$data["toko_user"]->logo;?>';
		$('#gambar_na').attr("src",url_img+'?timestamp='+ new Date().getTime());
	<? }?>
	
	 $('#add_toko').linkbutton({  
		iconCls: 'add'  
	 });
	  $('#update').linkbutton({  
		iconCls: 'group_edit'  
	 });
 	$(document).ready(function(){  
	
	 
	 $('#update').bind('click',function(){ 
		get_form(host+'backend/get_crud/user_toko/edit/','',(lebar-700),(tinggi-370),'Edit Data Reseller Toko');
	 });
	 
	 $('#add_toko').bind('click',function(){  
		get_form(host+'backend/get_crud/user_toko/add/','',(lebar-700),(tinggi-370),'Buat Baru Reseller Toko');
	 });
	 
	
 });
 
</script>




